Skip to main content
Glama
remove.ts664 B
import { deletePackage } from "@/packages/remove/actions/deletePackage"; import { extractMcpName } from "@/http/server/utils"; // Adjusted path export const removeResponse = async (pathname: string) => { // Extract mcpName from pathname const mcpNameResult = extractMcpName(pathname, "remove"); // Handle potential Response error from mcpName extraction if (mcpNameResult instanceof Response) { return mcpNameResult; } // Use the extracted mcpName (which is now guaranteed to be a string) const mcpName = mcpNameResult; const result = await deletePackage(mcpName); return new Response(JSON.stringify({ success: true, data: result })); };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ashwwwin/furi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server